﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using University.Workshop.Model;
using University.Workshop.DataAccess;

namespace University.Workshop.Business
{
    public static class MedicineManager
    {
        /// <summary>
        /// the method register new medicine
        /// </summary>
        /// <param name="r">the medicine to register</param>
        public static void NewMedicine(Medicine medicine)
        {
            MedicineDataAccess.RegisterNewMedicine(medicine);
        }

        public static ICollection<Medicine> MedicinesLow()
        {
            return MedicineDataAccess.SearchMedicineLow();            
        }

        public static ICollection<Medicine> ExpiredMedicines()
        {
            return MedicineDataAccess.SearchExpiredMedicine();
        }
    }
}
